package com.atguigu.spring.aop.xml;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {

	public static void main(String[] args) {
		
		@SuppressWarnings("resource")
		ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext-xml.xml");
		
		AritthmeticCalculator aritthmeticCalculator = (AritthmeticCalculator)ctx.getBean("aritthmeticCalculatorImpl");
		aritthmeticCalculator.add(5, 5);
		aritthmeticCalculator.sub(5, 4);
		aritthmeticCalculator.mul(5, 9);
		aritthmeticCalculator.div(4, 0);
		
	}
}
